package lab01;

import java.util.Scanner;

public class test08 {
    public static void main(String[] args) {
      int j=58;

        System.out.println("请输入你的猜测结果：");
        int i=new Scanner(System.in).nextInt();

       while(i!=j){

               if (i > j) {
                   System.out.println("猜大了");
                    i=new Scanner(System.in).nextInt();
               }

               else if (i < j){
                   System.out.println("猜小了");
                   i=new Scanner(System.in).nextInt();
               }
            }

        System.out.println("猜对了");

    }
}
